package org.whb.pet.service;

import org.whb.basic.service.IBaseService;
import org.whb.pet.domain.Pet;
import org.whb.user.domain.Logininfo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IPetService extends IBaseService<Pet> {
    /**
     * 宠物上架
     * @param ids
     */
    void onSale(List<Long> ids);

    /**
     * 宠物下架
     * @param ids
     */
    void offSale(List<Long> ids);

    /**
     * 通过id查询
     * @param id
     * @return
     */
    Pet queryByDetail(Long id);

    /**
     * 领养
     * @param id
     * @param logininfo
     */
    void adopt(Long id, Logininfo logininfo);
}
